
class Watcher{
    constructor(){
        global.temp = this;
        getter();
    }
}

function getter(){
    console.log(global.temp)
}

let watcher1 = new Watcher();
